package com.ocom.payconfig.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ocom.common.entity.pay.EntityAbnormal;
import com.ocom.common.enums.DataSourceEnum;
import com.ocom.common.enums.MasterSlaveEnum;
import com.ocom.common.utils.CommonUtil;
import com.ocom.mysql.aspect.DataSourceAspect;
import com.ocom.payconfig.dao.IDaoAbnormal;
import com.ocom.payconfig.service.AbnormalService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AbnormalServiceImpl extends ServiceImpl<IDaoAbnormal, EntityAbnormal> implements AbnormalService {

    @Override
    @DataSourceAspect(type= DataSourceEnum.PART_DB,isMaster = MasterSlaveEnum.MASTER)
    public Boolean Add(Long companyId , EntityAbnormal entityAbnormal){
        return  this.save(entityAbnormal);
    }



}
